package com.ruoyi.shop.delivery.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商城运费模板对象 shop_freight
 * 
 * @author xuxiang
 * @date 2024-01-16
 */
public class ShopFreight extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 邮费模板id */
    private Long freightId;

    /** 邮费模板名称 */
    @Excel(name = "邮费模板名称")
    private String freightName;

    /** 首重 */
    @Excel(name = "首重")
    private BigDecimal firstNum;

    /** 计费类型(0按重量1按件数2按体积) */
    @Excel(name = "计费类型(0按重量1按件数2按体积)")
    private Integer chargeType;

    /** 首费 */
    @Excel(name = "首费")
    private BigDecimal firstFreight;

    /** 续重 */
    @Excel(name = "续重")
    private BigDecimal continueNum;

    /** 续费 */
    @Excel(name = "续费")
    private BigDecimal continueFreight;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    public void setFreightId(Long freightId) 
    {
        this.freightId = freightId;
    }

    public Long getFreightId() 
    {
        return freightId;
    }
    public void setFreightName(String freightName) 
    {
        this.freightName = freightName;
    }

    public String getFreightName() 
    {
        return freightName;
    }
    public void setFirstNum(BigDecimal firstNum) 
    {
        this.firstNum = firstNum;
    }

    public BigDecimal getFirstNum() 
    {
        return firstNum;
    }
    
    public void setFirstFreight(BigDecimal firstFreight) 
    {
        this.firstFreight = firstFreight;
    }

	public BigDecimal getFirstFreight() {
		return firstFreight;
	}
    public void setContinueNum(BigDecimal continueNum) 
    {
        this.continueNum = continueNum;
    }

    public BigDecimal getContinueNum() 
    {
        return continueNum;
    }
    public void setContinueFreight(BigDecimal continueFreight) 
    {
        this.continueFreight = continueFreight;
    }

    public BigDecimal getContinueFreight() 
    {
        return continueFreight;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    public Integer getChargeType() {
		return chargeType;
	}

	public void setChargeType(Integer chargeType) {
		this.chargeType = chargeType;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("freightId", getFreightId())
            .append("freightName", getFreightName())
            .append("firstNum", getFirstNum())
            .append("chargeType", getChargeType())
            .append("firstFreight", getFirstFreight())
            .append("continueNum", getContinueNum())
            .append("continueFreight", getContinueFreight())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
